/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2012
 */

package com.tech15.pub.model;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.tech15.pub.model.*;
import com.tech15.pub.dao.*;
import com.tech15.pub.service.*;
import com.tech15.pub.vo.query.*;

/**
 * @author 胡作正 email:zuozhenghu@sina.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "PUB_XMJCB")
public class PubXmjcb extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "项目进程表";
	public static final String ALIAS_ID = "序号";
	public static final String ALIAS_SJ = "时间";
	public static final String ALIAS_XMMC = "项目名称";
	public static final String ALIAS_HTSL = "合同数量";
	public static final String ALIAS_JSPZ = "技术配置";
	public static final String ALIAS_JCKW = "基础开挖";
	public static final String ALIAS_DCJZ = "垫层浇筑";
	public static final String ALIAS_JCHAZ = "基础环安装";
	public static final String ALIAS_HNTXZ = "混凝土浇筑";
	public static final String ALIAS_ZJJHXD = "主机计划下达";
	public static final String ALIAS_ZYGJQD = "专用工具清单";
	public static final String ALIAS_TTWLQD = "塔筒物料清单";
	public static final String ALIAS_BPBJYHP = "备品备件/易耗品";
	public static final String ALIAS_PDG = "配电柜";
	public static final String ALIAS_JKG = "监控柜";
	public static final String ALIAS_YP = "叶片";
	public static final String ALIAS_ZZSL = "在制数量";
	public static final String ALIAS_BJSL = "报检数量";
	public static final String ALIAS_RKSL = "入库数量";
	public static final String ALIAS_LJRKSL = "累计入库数量";
	public static final String ALIAS_BYJHFH = "本月计划发货";
	public static final String ALIAS_BYSFTS = "本月实发台数";
	public static final String ALIAS_LJFHTS = "累计发货台数";
	public static final String ALIAS_BZ = "备注";
	
	//date formats
	

	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * 序号       db_column: ID 
     */ 	
	@Length(max=32)
	private java.lang.String id;
    /**
     * 时间       db_column: SJ 
     */ 	
	@Length(max=10)
	private java.lang.String sj;
    /**
     * 项目名称       db_column: XMMC 
     */ 	
	@Length(max=60)
	private java.lang.String xmmc;
    /**
     * 合同数量       db_column: HTSL 
     */ 	
	@Length(max=10)
	private java.lang.String htsl;
    /**
     * 技术配置       db_column: JSPZ 
     */ 	
	@Length(max=30)
	private java.lang.String jspz;
    /**
     * 基础开挖       db_column: JCKW 
     */ 	
	@Length(max=30)
	private java.lang.String jckw;
    /**
     * 垫层浇筑       db_column: DCJZ 
     */ 	
	@Length(max=30)
	private java.lang.String dcjz;
    /**
     * 基础环安装       db_column: JCHAZ 
     */ 	
	@Length(max=30)
	private java.lang.String jchaz;
    /**
     * 混凝土浇筑       db_column: HNTXZ 
     */ 	
	@Length(max=30)
	private java.lang.String hntxz;
    /**
     * 主机计划下达       db_column: ZJJHXD 
     */ 	
	@Length(max=30)
	private java.lang.String zjjhxd;
    /**
     * 专用工具清单       db_column: ZYGJQD 
     */ 	
	@Length(max=30)
	private java.lang.String zygjqd;
    /**
     * 塔筒物料清单       db_column: TTWLQD 
     */ 	
	@Length(max=30)
	private java.lang.String ttwlqd;
    /**
     * 备品备件/易耗品       db_column: BPBJYHP 
     */ 	
	@Length(max=30)
	private java.lang.String bpbjyhp;
    /**
     * 配电柜       db_column: PDG 
     */ 	
	@Length(max=30)
	private java.lang.String pdg;
    /**
     * 监控柜       db_column: JKG 
     */ 	
	@Length(max=30)
	private java.lang.String jkg;
    /**
     * 叶片       db_column: YP 
     */ 	
	@Length(max=30)
	private java.lang.String yp;
    /**
     * 在制数量       db_column: ZZSL 
     */ 	
	@Length(max=30)
	private java.lang.String zzsl;
    /**
     * 报检数量       db_column: BJSL 
     */ 	
	@Length(max=30)
	private java.lang.String bjsl;
    /**
     * 入库数量       db_column: RKSL 
     */ 	
	@Length(max=30)
	private java.lang.String rksl;
    /**
     * 累计入库数量       db_column: LJRKSL 
     */ 	
	@Length(max=30)
	private java.lang.String ljrksl;
    /**
     * 本月计划发货       db_column: BYJHFH 
     */ 	
	@Length(max=30)
	private java.lang.String byjhfh;
    /**
     * 本月实发台数       db_column: BYSFTS 
     */ 	
	@Length(max=30)
	private java.lang.String bysfts;
    /**
     * 累计发货台数       db_column: LJFHTS 
     */ 	
	@Length(max=30)
	private java.lang.String ljfhts;
    /**
     * 备注       db_column: BZ 
     */ 	
	@Length(max=300)
	private java.lang.String bz;
	//columns END


	public PubXmjcb(){
	}

	public PubXmjcb(
		java.lang.String id
	){
		this.id = id;
	}

	

	public void setId(java.lang.String value) {
		this.id = value;
	}
	
	@Id @GeneratedValue(generator="custom-id")
	@GenericGenerator(name="custom-id", strategy = "uuid.hex")
	@Column(name = "ID", unique = true, nullable = false, insertable = true, updatable = true, length = 32)
	public java.lang.String getId() {
		return this.id;
	}
	
	@Column(name = "SJ", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.String getSj() {
		return this.sj;
	}
	
	public void setSj(java.lang.String value) {
		this.sj = value;
	}
	
	@Column(name = "XMMC", unique = false, nullable = true, insertable = true, updatable = true, length = 60)
	public java.lang.String getXmmc() {
		return this.xmmc;
	}
	
	public void setXmmc(java.lang.String value) {
		this.xmmc = value;
	}
	
	@Column(name = "HTSL", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.String getHtsl() {
		return this.htsl;
	}
	
	public void setHtsl(java.lang.String value) {
		this.htsl = value;
	}
	
	@Column(name = "JSPZ", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getJspz() {
		return this.jspz;
	}
	
	public void setJspz(java.lang.String value) {
		this.jspz = value;
	}
	
	@Column(name = "JCKW", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getJckw() {
		return this.jckw;
	}
	
	public void setJckw(java.lang.String value) {
		this.jckw = value;
	}
	
	@Column(name = "DCJZ", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getDcjz() {
		return this.dcjz;
	}
	
	public void setDcjz(java.lang.String value) {
		this.dcjz = value;
	}
	
	@Column(name = "JCHAZ", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getJchaz() {
		return this.jchaz;
	}
	
	public void setJchaz(java.lang.String value) {
		this.jchaz = value;
	}
	
	@Column(name = "HNTXZ", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getHntxz() {
		return this.hntxz;
	}
	
	public void setHntxz(java.lang.String value) {
		this.hntxz = value;
	}
	
	@Column(name = "ZJJHXD", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getZjjhxd() {
		return this.zjjhxd;
	}
	
	public void setZjjhxd(java.lang.String value) {
		this.zjjhxd = value;
	}
	
	@Column(name = "ZYGJQD", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getZygjqd() {
		return this.zygjqd;
	}
	
	public void setZygjqd(java.lang.String value) {
		this.zygjqd = value;
	}
	
	@Column(name = "TTWLQD", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getTtwlqd() {
		return this.ttwlqd;
	}
	
	public void setTtwlqd(java.lang.String value) {
		this.ttwlqd = value;
	}
	
	@Column(name = "BPBJYHP", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getBpbjyhp() {
		return this.bpbjyhp;
	}
	
	public void setBpbjyhp(java.lang.String value) {
		this.bpbjyhp = value;
	}
	
	@Column(name = "PDG", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getPdg() {
		return this.pdg;
	}
	
	public void setPdg(java.lang.String value) {
		this.pdg = value;
	}
	
	@Column(name = "JKG", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getJkg() {
		return this.jkg;
	}
	
	public void setJkg(java.lang.String value) {
		this.jkg = value;
	}
	
	@Column(name = "YP", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getYp() {
		return this.yp;
	}
	
	public void setYp(java.lang.String value) {
		this.yp = value;
	}
	
	@Column(name = "ZZSL", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getZzsl() {
		return this.zzsl;
	}
	
	public void setZzsl(java.lang.String value) {
		this.zzsl = value;
	}
	
	@Column(name = "BJSL", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getBjsl() {
		return this.bjsl;
	}
	
	public void setBjsl(java.lang.String value) {
		this.bjsl = value;
	}
	
	@Column(name = "RKSL", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getRksl() {
		return this.rksl;
	}
	
	public void setRksl(java.lang.String value) {
		this.rksl = value;
	}
	
	@Column(name = "LJRKSL", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getLjrksl() {
		return this.ljrksl;
	}
	
	public void setLjrksl(java.lang.String value) {
		this.ljrksl = value;
	}
	
	@Column(name = "BYJHFH", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getByjhfh() {
		return this.byjhfh;
	}
	
	public void setByjhfh(java.lang.String value) {
		this.byjhfh = value;
	}
	
	@Column(name = "BYSFTS", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getBysfts() {
		return this.bysfts;
	}
	
	public void setBysfts(java.lang.String value) {
		this.bysfts = value;
	}
	
	@Column(name = "LJFHTS", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getLjfhts() {
		return this.ljfhts;
	}
	
	public void setLjfhts(java.lang.String value) {
		this.ljfhts = value;
	}
	
	@Column(name = "BZ", unique = false, nullable = true, insertable = true, updatable = true, length = 300)
	public java.lang.String getBz() {
		return this.bz;
	}
	
	public void setBz(java.lang.String value) {
		this.bz = value;
	}
	
	

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Sj",getSj())
			.append("Xmmc",getXmmc())
			.append("Htsl",getHtsl())
			.append("Jspz",getJspz())
			.append("Jckw",getJckw())
			.append("Dcjz",getDcjz())
			.append("Jchaz",getJchaz())
			.append("Hntxz",getHntxz())
			.append("Zjjhxd",getZjjhxd())
			.append("Zygjqd",getZygjqd())
			.append("Ttwlqd",getTtwlqd())
			.append("Bpbjyhp",getBpbjyhp())
			.append("Pdg",getPdg())
			.append("Jkg",getJkg())
			.append("Yp",getYp())
			.append("Zzsl",getZzsl())
			.append("Bjsl",getBjsl())
			.append("Rksl",getRksl())
			.append("Ljrksl",getLjrksl())
			.append("Byjhfh",getByjhfh())
			.append("Bysfts",getBysfts())
			.append("Ljfhts",getLjfhts())
			.append("Bz",getBz())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof PubXmjcb == false) return false;
		if(this == obj) return true;
		PubXmjcb other = (PubXmjcb)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

